<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$_title}</h2>
    </div>
    <div class="form-horizontal" style="position: relative;">
    	<div class="form-item">
        	<label class="item-label">文件名称：<span class="check-tips">{$file.name|default=''}</span></label>
     	</div>
        <div class="form-item">
            <label class="item-label">文件类型：<span class="check-tips">{$file.file_type_text|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">　扩展名：<span class="check-tips">{$file.ext|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">文件大小：<span class="check-tips">{$file.size_format|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">访问路径：<span class="check-tips">{$file.url|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">存储路径：<span class="check-tips">{$file.realpath|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">　上传者：<span class="check-tips">{$file.operator_name}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">MIME类型：<span class="check-tips">{$file.mime|default=''}</span></label>
        </div>
	    <notempty name="file['picture']">
			<div class="form-item">
		    	<label class="item-label">图片预览<span class="check-tips"></span></label>
		    	<div class="controls"><img src="{$file.url}"/></div>
		    </div>
		<else />
			<div class="form-item">
	            <label class="item-label">文件预览：<span class="check-tips"><a href="{$file.url|default=''}">查看文件</a></span></label>
	        </div>
	    </notempty>
   </div>
</block>
<block name="style">
	<link href="__PUBLIC__/static/uploadify/uploadify.css" rel="stylesheet" media="screen">
</block>
<block name="script">
<script type="text/javascript" src="__PUBLIC__/static/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript">
    //导航高亮
    highlight_subnav('{:U("File/fileList")}');
</script>
</block>
